package com.example.day_35.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.day_35.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<User> list();

    int add(User user);

    int update(User user);

    int delete(int id);
    User login(@Param("name") String name, @Param("password") String password);

}
